package com.cg.controller;

import com.cg.po.User;
import com.cg.service.DemoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class producer7070Controller {

    @Autowired
    private DemoService demoService;

    @GetMapping("/get7070")
    public String get7070(){
        return "get7070";
    }

    @GetMapping("findAllUser")
    public List<User> findAllUser(){
        return demoService.findAllUser();
    }
}
